/**
 * Created by Jone on 2016/7/13.
 */
var mongoose = require('mongoose');
var Schema = mongoose.Schema;

var ProjectSchema = new Schema({
    name: String, //显示名称
    desc: String, //分组标识
    type : Number, // 1-公开，2-私密
    userId: {type : Schema.Types.ObjectId, ref: 'User'},  //用户Id
    createAt:{type: Date, default: Date.now}, //创建时间
    updateAt: {type: Date, default: Date.now} //更新时间
});
exports.Project = mongoose.model('Project', ProjectSchema);